package com.feicheng.iou.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 线索来源
     */
    private String source;

    /**
     * 线索状态
     */
    private String statu;

    /**
     * 应聘职位
     */
    private String ypzw;

    /**
     * 从事过的工作
     */
    private String csgz;

    /**
     * 投递公司名称
     */
    private String tdgsmc;

    /**
     * 备注
     */
    private String bz;

    /**
     * 所属人
     */
    private Integer autor;

    /**
     * 相关学生ID
     */
    @TableField("student_id")
    private Integer studentId;

    private Integer cu;
    //格式转换 String 转换成 LocalTime
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ct;

    private Integer uu;
    //格式转换 String 转换成 LocalTime
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ut;

    @TableLogic
    private Integer isDeleted;

    private Integer stageId;


}
